package com.code.util;

import java.io.PrintStream;

public final class LogUtil {
	private static PrintStream info = System.out;
	private static PrintStream err = System.err;

	private LogUtil() {
	}

	public static void err(String msg) {
		err.println(msg);
	}

	public static void err(Throwable t) {
		err(t.toString());
	}

	public static void err(String msg, Throwable t) {
		err(msg);
		err(t.toString());
	}

	public static void info(String msg) {
		info.println(msg);
	}

	public static void info(Throwable t) {
		info(t.toString());
	}

	public static void info(String msg, Throwable t) {
		info(msg);
		info(t.toString());
	}
}
